package top.manbutech.activity.activitydemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class ThirdActivity extends Activity {

    private static final String TAG = "ThirdActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);

        Intent intent = getIntent();
        String username = intent.getStringExtra("username");
        String password = intent.getStringExtra("password");
        Log.d(TAG, "username: "+username);
        Log.d(TAG, "password: "+password);

        TextView textView = (TextView) this.findViewById(R.id.info);
        textView.setText("username:"+username+"password:"+password);
    }
}
